cmake_minimum_required(VERSION 2.8.3)

project(control_motor)
add_compile_options(-std=c++11)

find_package(catkin REQUIRED COMPONENTS
	roscpp
	rospy
	tf
	)
catkin_package()

include_directories(
  ${catkin_INCLUDE_DIRS}
  "../../devel/include"
  "include"
  "lib/matrix"
)

find_package(Eigen3 REQUIRED)
include_directories(${EIGEN3_INCLUDE_DIR})
add_definitions(${EIGEN_DEFINITIONS})

find_package(roslaunch)

add_executable(motor_mavlink_control src/motor_mavlink_control.cpp)
target_link_libraries(motor_mavlink_control ${catkin_LIBRARIES})

add_executable(mixer_test src/mixer_test.cpp)
target_link_libraries(mixer_test ${catkin_LIBRARIES})